﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model.Data
{
    public abstract class Item<T, TD> : IItem where T : Item<T, TD>
    {
        /// <summary>
        /// 标题
        /// </summary>
        public string title { get; set; }
        public ItemType.Type type { get; set; }

        public string excelName { get; set; }

        public abstract T Init();

        public void Builder()
        {
            ItemType.TagDic.Add(title, type);
        }

        public abstract void Test();
        /// <summary>
        /// 处理接收到的json，然后打印
        /// </summary>
        /// <param name="json"></param>
        public abstract void Handler(RequestData requestData);
        public abstract void Print(TD dataObj);

    }
}
